package com.xzq.wanandroid.bean.home;

import org.litepal.LitePal;
import org.litepal.crud.LitePalSupport;

import java.util.List;

/**
 * @ClassName : Banner
 * @Description : 首页BannerBean类
 * @Author : xzq
 * @Date: 2021-05-17 10:28
 * @Version :
 */
public class BannerBean extends LitePalSupport {
    /**
     * {
     * "data": [
     * {
     * "desc": "扔物线",
     * "id": 29,
     * "imagePath": "https://wanandroid.com/blogimgs/31c2394c-b07c-4699-afd1-95aa7a3bebc6.png",
     * "isVisible": 1,
     * "order": 0,
     * "title": "View 嵌套太深会卡？来用 Jetpack Compose，随便套&mdash;&mdash;Compose 的 Intrinsic Measurement",
     * "type": 0,
     * "url": "https://www.bilibili.com/video/BV1ZA41137gr"
     * },
     * {
     * "desc": "",
     * "id": 6,
     * "imagePath": "https://www.wanandroid.com/blogimgs/62c1bd68-b5f3-4a3c-a649-7ca8c7dfabe6.png",
     * "isVisible": 1,
     * "order": 1,
     * "title": "我们新增了一个常用导航Tab~",
     * "type": 1,
     * "url": "https://www.wanandroid.com/navi"
     * },
     * {
     * "desc": "一起来做个App吧",
     * "id": 10,
     * "imagePath": "https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png",
     * "isVisible": 1,
     * "order": 1,
     * "title": "一起来做个App吧",
     * "type": 1,
     * "url": "https://www.wanandroid.com/blog/show/2"
     * },
     * {
     * "desc": "",
     * "id": 20,
     * "imagePath": "https://www.wanandroid.com/blogimgs/90c6cc12-742e-4c9f-b318-b912f163b8d0.png",
     * "isVisible": 1,
     * "order": 2,
     * "title": "flutter 中文社区 ",
     * "type": 1,
     * "url": "https://flutter.cn/"
     * }
     * ],
     * "errorCode": 0,
     * "errorMsg": ""
     * }
     */

    private List<Data> data;
    private int errorCode;
    private String errorMsg;

    public void setData(List<Data> data) {
        this.data = data;
    }

    public List<Data> getData() {
        return this.data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return this.errorCode;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() {
        return this.errorMsg;
    }

    public static class Data {
        /**
         *               desc": "扔物线",
         * *             "id": 29,
         * *             "imagePath": "https://wanandroid.com/blogimgs/31c2394c-b07c-4699-afd1-95aa7a3bebc6.png",
         * *             "isVisible": 1,
         * *             "order": 0,
         * *             "title": "View 嵌套太深会卡？来用 Jetpack Compose，随便套&mdash;&mdash;Compose 的 Intrinsic Measurement",
         * *             "type": 0,
         * *             "url": "https://www.bilibili.com/video/BV1ZA41137gr"
         */

        private String desc;
        private int id;
        private String imagePath;
        private int isVisible;
        private int order;
        private String title;
        private int type;
        private String url;

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return this.desc;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getId() {
            return this.id;
        }

        public void setImagePath(String imagePath) {
            this.imagePath = imagePath;
        }

        public String getImagePath() {
            return this.imagePath;
        }

        public void setIsVisible(int isVisible) {
            this.isVisible = isVisible;
        }

        public int getIsVisible() {
            return this.isVisible;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public int getOrder() {
            return this.order;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getTitle() {
            return this.title;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getType() {
            return this.type;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getUrl() {
            return this.url;
        }
    }


}


